package com.yc.healthy.mapper;

import com.yc.healthy.entity.Category;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yc.healthy.entity.Cuisine;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lyl
 * @since 2023-03-08
 */
public interface CategoryMapper extends BaseMapper<Category> {

    @Select("select * from category where category = #{category}")
    List<Category> SelectBytype(@Param("category") String type);


    @Select("select * from category where cgid = #{cgid}")
    Category QueryById(int id);
}
